package cn.edu.hhtc.stsystem.struts2;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import cn.edu.hhtc.stsystem.entity.CookEntity;
import cn.edu.hhtc.stsystem.entity.form.UserEntityForm;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

@Results({@Result(name="user_main", location="/")})
public class UserAction extends ActionSupport implements ModelDriven<UserEntityForm>{

	/**
	 * 
	 */
	private static final long serialVersionUID = -4622198483590099777L;
	
	private UserEntityForm form;
	
	private CookEntity code;
	
	@Action("/user/getUser")
	private String getUser() throws Exception {
		
		return "user_main";
	}
	@Override
	public UserEntityForm getModel() {
		
		return form;
	}
}
